package com.mlz.mlzmall.ui.activity.act.personal.userLogin;

import com.mlz.mlzmall.ui.utils.DataUtils;

/**
 * Created by jack.wang on 2015/11/15.
 */
public class GetSession {
    private int status;
    private Object errors;
    private String message;
    private Data data;

    public Data getData() {
        return data;
    }

    public String getMessage() {
        return DataUtils.getString(message);
    }

    public Object getErrors() {
        return errors;
    }

    public int getStatus() {
        return DataUtils.getInt(status);
    }

    public static class Data {
        private String sessionKey;

        public String getSessionKey() {
            return DataUtils.getString(sessionKey);
        }

        @Override
        public String toString() {
            return "Data{" +
                    "sessionKey='" + sessionKey + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "GetSession{" +
                "status=" + status +
                ", errors=" + errors +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
